package com.mianshi;

public class youzan2 {
    public static void main(String[] args) {

    }
    public boolean method1(int num){
        String s = String.valueOf(num);
        int length = s.length();
        for(int i = 0, j = length-1; i <= j; i++, j--){
            char a = s.charAt(i);
            char b = s.charAt(j);
            if(a != b){
                return false;
            }
        }
        return true;
    }
}
